<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>colyseus.js - static html</title>
</head>
<body>

    <script type="text/javascript" src="./colyseus.js"></script>
    <script type="text/javascript">
        const client = new Colyseus.Client("ws://localhost:2567");
        client.joinOrCreate("my_room").then((room) => {
            room.onStateChange((state) => console.log("onStateChange:", { state }));
            room.onLeave((code) => console.log("onLeave:", { code }));
        });
    </script>

</body>
</html>
